import { Component, OnInit } from '@angular/core';
import { FetchService } from "../../../core/net/fetch.service";

@Component({
    selector: 'app-mng-water-report',
    templateUrl: './mng-water-report.component.html',
    styleUrls: ['./mng-water-report.component.scss']
})
export class MngWaterReportComponent implements OnInit {
    typeList = ["1", "2", "3", "6"];
    sectionId = JSON.parse(localStorage.userInfo).sectionId;


    constructor(private fetchService: FetchService) {
    }

    ngOnInit() {
        this.fetchService.get<any>('muw/wrsMuwManageType/query').subscribe(res => {
            if (res) {
                this.typeList = res;
                this.typeList.push('7');
            }
        });
    }

}
